#let pkgs = import <nixpkgs> {}; in
{ stdenv, pkgs, ... }:

with pkgs;

stdenv.mkDerivation rec {
  pname = "clash-linux-amd64";
  version = "1.0";
 src = fetchurl {

    url = "https://gitee.com/a994759771/myapp/raw/master/clash-linux-amd64.tar.gz";

    sha256 = "sha256-tTpt5c/LK6kSL2vdj1wDfrmJf8jWgaFPZvgmcwEM5Ng="; # 替换为实际的sha256哈希值

  };
  buildInputs = [  ];

  buildPhase = '''';

  installPhase = ''
    mkdir -p $out/bin
    cp clash-linux-amd64 $out/bin/
    chmod +x $out/bin/clash-linux-amd64
  '';
}

